package hannuota;

import java.awt.Color;

import javax.swing.JButton;

/**
 * 盘子类
 * 盘子的编号、位置信息以及相关的设置和获取方法
 */
public class Disc extends JButton {
    int number;//盘子的编号
    TowerPoint point;//位置信息

    Disc() {
        setBackground(Color.GREEN);
    }

    public void setNumber(int n) {
        number = n;
    }

    public int getNumber() {
        return number;
    }

    public void setPoint(TowerPoint p) {
        point = p;
    }

    public TowerPoint getPoint() {
        return point;
    }
}